package com.sumainfor.wx.system.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.gmio.service.ThrowLeaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author Meng
 * @ClassName ThrowLeaseController
 * @date 2019/9/9 14:14
 * @description: TODO 退租
 */
@RestController
@RequestMapping("/throwLease")
public class ThrowLeaseController {

    @Autowired
    private ThrowLeaseService throwLeaseService;

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 服务管家退租的时候查询上次的水表抄表数
     * @Param [params]
     * @Date 2019/9/9 14:23
     **/
    @GetMapping("/HoEleMeter/getHoEleMeter")
    public JsonResult getHoEleMeter(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHoEleMeter(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 查询合同的换房信息、转租信息
     * @Param [params]
     * @Date 2019/9/9 14:27
     **/
    @GetMapping("/RdPactController/getRdPactTenList")
    public JsonResult getRdPactTenList(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getRdPactTenList(params);

    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 退租的时候查询房源的房间智能电表信息列表
     * @Param [params]
     * @Date 2019/9/9 14:29
     **/
    @PostMapping("/HoHousingPlan/getHoRdInteDeviceList")
    public JsonResult getHoRdInteDeviceList(@RequestBody Map<String, Object> params) {

        return throwLeaseService.getHoRdInteDeviceList(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 查询房源的水电燃收费标准
     * @Param [params]
     * @Date 2019/9/9 14:32
     **/
    @GetMapping("/DiChargesDept/getChargesDept")
    public JsonResult getChargesDept(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getChargesDept(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 市场部签合同的时候查询房间智能电表的设备编号
     * @Param [params]
     * @Date 2019/9/9 14:34
     **/
    @PostMapping("/HoHousingPlan/getHoRdInteHpiList")
    public JsonResult getHoRdInteHpiList(@RequestBody Map<String, Object> params) {

        return throwLeaseService.getHoRdInteHpiList(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 服务管家退租的时候查询上次的燃气抄表数
     * @Param [params]
     * @Date 2019/9/9 14:36
     **/
    @GetMapping("/HoGasMeter/getHoGasMeterLast")
    public JsonResult getHoGasMeterLast(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHoGasMeterLast(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 填写退租表时查询未缴费账单
     * @Param [params]
     * @Date 2019/9/9 14:37
     **/
    @GetMapping("/HoTenantBill/getTenantBillWithdraList")
    public JsonResult getTenantBillWithdraList(@RequestParam Map<String, Object> params) {
        return throwLeaseService.getTenantBillWithdraList(params);

    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 服务管家查询整租房间的公共区域的物品清单
     * @Param [params]
     * @Date 2019/9/9 14:39
     **/
    @GetMapping("/HoHousingAlter/getHoHousingAlterRentComList")
    public JsonResult getHoHousingAlterRentComList(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHoHousingAlterRentComList(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 服务管家根据房源编号查询该房源所签署的合同信息
     * @Param [params]
     * @Date 2019/9/9 14:41
     **/
    @GetMapping("/RdHousingInfoController/getHouPactByHouInfoId")
    public JsonResult getHouPactByHouInfoId(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHouPactByHouInfoId(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 服务管家查询房间的物品清单
     * @Param [params]
     * @Date 2019/9/9 14:42
     **/
    @GetMapping("/HoHousingAlter/getHoHousingAlterRentList")
    public JsonResult getHoHousingAlterRentList(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHoHousingAlterRentList(params);
    }

    /**
     * @return com.sumainfor.common.util.JsonResult
     * @Description //TODO 根据合同编号查询该合同是否存在未审核的退租表
     * @Param [params]
     * @Date 2019/9/9 14:44
     **/
    @GetMapping("/HoWithdrawal/getHoPactWithCount")
    public JsonResult getHoPactWithCount(@RequestParam Map<String, Object> params) {

        return throwLeaseService.getHoPactWithCount(params);
    }
}
